<template>
  <div class="title">
    <span></span>
    <p>{{ title }}</p>
    <span></span>
  </div>
</template>

<script>
export default {
  name: "TitleView",
  props: ["title"],
};
</script>

<style lang="less" scoped>
.title {
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  p {
    font-size: 22px;
  }
  span {
    display: inline-block;
    width: 600px;
    height: 1px;
    background: linear-gradient(to right, violet, orange, yellow, green);
  }
}
</style>